package com.cvo.scrumtoolkit.client.pannels;

import java.util.ArrayList;
import java.util.List;

import com.cvo.scrumtoolkit.client.entities.BacklogItem;
import com.cvo.scrumtoolkit.client.entities.Project;
import com.cvo.scrumtoolkit.client.entities.WorkItem;
import com.google.gwt.user.client.rpc.AsyncCallback;




public interface PersistentServiceAsync {

    void persistProject(String projectnaam, String scrummaster, AsyncCallback<Void> callback);
   	void register(AsyncCallback<Void> callback);
	void searchProjects(AsyncCallback<ArrayList<Project>> callback);
	void getNumberOfItems(Project project, AsyncCallback<Integer> callback);
	void persistBacklogitem(String naam, int uur, String pid,AsyncCallback<Void> callback);
	void setSprintInBacklogitem(String naam, int i, AsyncCallback<Void> callback);
	void setSprintsInProject(String naam, AsyncCallback<Integer> callback);
	void getSprintsInProject(String naam, AsyncCallback<Integer> callback);
	void getItemsinSprint(String project, int sprint,AsyncCallback<List<BacklogItem>> callback);
	void persistWorkitem(String backlogItem, String naam, String developper,AsyncCallback<Void> callback);
	void getWorkItems(String backlogitem, AsyncCallback<List<WorkItem>> callback);
	void setStatus(String workItem, String status, AsyncCallback<Void> callback);
	void getItems(String project, AsyncCallback<List<BacklogItem>> callback);
	void setWerkuren(String workItem, int werkuren, AsyncCallback<Void> callback);

   	}




